package com.wisemoresystem.seal.util.sql;

import java.io.File;

public class SybaseBackup {

	static String outModel = "./bcp sealdb..@table out \"/home/sybase/back/@table.sql\" -SS1X_SEAL_SRV -Usealdbo -Psealpass -c -t,";
//	static String inModel = "./bcp sealdb..@table in \"/home/sybase/back/@table.sql\" -SS1X_YKY_ASE -Usa -P -c -t,";
	static String inModel = "./bcp sealdb..@table in \"/home/sybase/back/@table.sql\" -SS1X_SEAL_SRV -Usealdbo -Psealpass -c -t,";

	public static void main(String[] args) {
		File f = new File("E:\\workspaces2015\\wk1\\seal\\src\\main\\java\\com\\wisemoresystem\\seal\\model");
		String[] list = f.list();
		
		for (String model : list) {
			String t = model.replace(".java", "");
			System.err.println(outModel.replace("@table", t));

		}
		
		System.err.println("---------------------in------------------------------");
		for (String model : list) {
			String t = model.replace(".java", "");
			System.err.println(inModel.replace("@table", t));

		}
	}
}
